import React from 'react';
import ReactDOM from 'react-dom/client';
import {BrowserRouter, RouterProvider} from 'react-router-dom'
import App from './App'
const root = ReactDOM.createRoot(document.querySelector('#root'))

root.render((
    // 跟组件使用BrowserRouter包裹住
    <BrowserRouter>
        <App/>
    </BrowserRouter>
))